//
//  GenerateCardHelpView.m
//  QRMaster
//
//  Created by myApple on 16/6/3.
//  Copyright © 2016年 myApple. All rights reserved.
//

#import "GenerateCardHelpView.h"

@implementation GenerateCardHelpView

- (id) initWithFrame:(CGRect)frame {
    if ((self = [super initWithFrame:frame])) {
        [self awakeFromNib];
    }
    [self prepareView];
    return self;
}

-(void)prepareView
{
   CGFloat x = UI_SCREEN_WIDTH /10;
   CGFloat width = 80;
   CGFloat y = 20;
   CGFloat height = 20;
   UILabel * helpLabel =[[UILabel alloc]initWithFrame:CGRectMake(x, y, width, height)];
    helpLabel.text = NSLocalizedString(@"help", nil);
    helpLabel.font = [UIFont boldSystemFontOfSize:18.0];
    helpLabel.textColor = RGBA(153, 153, 153, 1);
    helpLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:helpLabel];
    
    
    y += height + 15;
    width = UI_SCREEN_WIDTH - 2 * x;
    height = 120;
    UILabel * labelOne = [[UILabel alloc]initWithFrame:CGRectMake(x, y, width, height)];
    labelOne.text = NSLocalizedString(@"cardHelpContent", nil);
    labelOne.numberOfLines = 0;
    labelOne.font = [UIFont systemFontOfSize:14.0];
    [self addSubview:labelOne];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
